package book;

public class BookTest2 {
	
	public static void main(String[] args) {
		BookDao dao = new BookDaoImpl();
		
		System.out.println(dao.insert(new Book(1,"a","a","a")));
		System.out.println(dao.insert(new Book(2,"b","a","a")));
		System.out.println(dao.insert(new Book(3,"c","a","a")));
		System.out.println(dao.insert(new Book(4,"d","a","a")));
		System.out.println(dao.insert(new Book(5,"e","a","a")));

		System.out.println(dao.deleteById(10));
		System.out.println(dao.deleteById(1));
		
		System.out.println(dao.update(new Book(2,"aa","aa","aa")));
		
		System.out.println(dao.selectById(2));
		
		dao.selectAll().forEach(System.out::println);
	};
}
